#!/bin/bash

str1=$1

if [[ "${str1}" =~ ^[a-zA-Z]+$ ]]; then
    echo "match pattern!"
    exit 0
else
    echo "not match pattern!"
    exit 1
fi